package com.example.validated.vo;

import com.example.validated.annotation.TestValidGroup;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class User {
    @NotNull(groups = {TestValidGroup.Update.class})
    private Integer id;

    @NotEmpty
    private String name;
}
